package com.nhjf.admin.controller.system;

import com.nhjf.admin.controller.BaseController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * 无需登录即可访问的页面请求
 * 
 * @author lixx
 */
@Controller
@RequestMapping(value = "/home")
public class IndexController extends BaseController {

	private Logger logger = LoggerFactory.getLogger(IndexController.class); 
	
	/**
	 * 
	 * @方法功能说明：错误页面
	 * @修改者名字：郑奕凯
	 * @修改时间：2017年9月12日 下午5:34:31
	 * @修改内容：
	 * @参数：
	 * @return:
	 * @throws
	 */
	@RequestMapping(value = "/error")
	public String error(HttpServletRequest request,Model model){
		return "/error/error.html";
	}
	
	
	@RequestMapping
	public String index(HttpServletRequest request, Model model) {		
		return "/home.html";
	}

	@RequestMapping(value = "/welcome")
	public String welcome(HttpServletRequest request,Model model){

		return "/home/welcome.html";
	}

	@RequestMapping(value = "/article_list")
	public String articleList(HttpServletRequest request,Model model){
		return "/home/article_list.html";
	}

	@ResponseBody
	@RequestMapping(value = "fenye")
	public String fengyeTest(HttpServletRequest request,Model model){

		return null;
	}
}
